// Header.jsx 文件
import React from 'react';

const Header = ({ handleLogout }) => {
  return (
    <header style={{ position: 'relative', height: '60px', backgroundColor: '#f0f0f0' }}>
      <button 
        style={{ 
          position: 'absolute', 
          top: '10px', 
          right: '20px', 
          padding: '8px 16px',
          cursor: 'pointer'
        }}
        onClick={handleLogout}
      >
        注销
      </button>
    </header>
  );
};

// 默认导出
export default Header;